home *** CD-ROM | disk | FTP | other *** search
- FIND Allows for searching through a file in order
- to determine the existence, and location, of
- a specific string of text characters.
-
- Format: FIND [/C][/N][/V]"String"[D:Path][FileSpec]
-
- /C COUNTS the number of lines that contain the
- specified "string" and displays this total.
-
- /N includes the NUMBER(s) of the line(s) where
- the "string" was found.
-
- /V displays each line NOT containing the "string"
-
-
- [**] The syntax rules for PC-Wizard require that when
- /* switches are NOT used that the string BEGIN with
- a single-quote ['] and END with a double-quote ["].
- Example: FIND /N "PC-Wizard" MANUAL.DOC
-
- Searches the file named MANUAL.DOC in the CURRENT
- directory and displays each line of text and line
- number in which the string "PC-Wizard" was found.
-
- Example: FIND "714" \FRIENDS\PHONES.TXT
-
- Searches the file named PHONES.TXT in the \FRIENDS
- directory on the CURRENT drive and displays each
- line in which the string "714" was found.
-
- Example: FIND /C/V "714" D:\FRIENDS\PHONES.TXT
-
- Searches the file named PHONES.TXT in the \FRIENDS
- directory on drive D: and reports the total number
- of lines where the string "714" was NOT found. Does
- NOT display the individual lines of text.
- Example: FIND "S" \BUSINESS\ADDRESS.TXT
-
- Displays each line of text in which the string "S"
- appeared in the file named ADDRESS.TXT in the
- \BUSINESS directory on the CURRENT drive.
-
- Example: FIND "S" \BUSINESS\ADDRESS.TXT >SADD.BUS
-
- Same as above, except redirects the output to a
- file named SADD.BUS and places it in the CURRENT
- directory.
-
- Example: FIND "Washington" CITY.TXT PRESIDENTS.TXT
-
- Searches the files CITY.TXT and PRESIDENTS.TXT
- and displays a separate listing for each of these
- files where the string "Washington" was found.
-
- [*] The FIND command is "case" sensitive and will
- only locate "strings" that match EXACTLY.
-
- [*] The FIND command will NOT accept wildcards.
-
- [*] Search terminates as soon as the first Ctrl-Z
- in the file is encountered.
-
- [*] The FIND command can also be used as a PIPE, as
- in the following example:
-
- DIR C:\DOS |FIND /V "SYS"|MORE
-
- Displays a listing of all the files in the C:\DOS
- directory with the exception of those containing
- the string "SYS" and pauses at the end of each
- full screen. (Issue from DIR or WildCard Command
- Lines ONLY!!)